package com.qbt.unipock.agent.dao;

import java.util.List;
import java.util.Map;

import org.springframework.data.jpa.repository.Query;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.master.params.DistributorOrderGroupParam;
//import com.xjoyt.pay.dto.PageParam;
//import com.xjoyt.pay.dto.PageResult;
//import com.xjoyt.pay.master.params.DistributorOrderGroupParam;
//import com.xjoyt.pay.master.po.Distributor;
//import com.xjoyt.pay.merchant.register.params.DistributorPageParam;
import com.xjoyt.pay.master.po.Distributor;
import com.xjoyt.pay.merchant.register.params.DistributorPageParam;

public interface DistributorRepositoryCustom {

	Distributor findOneByAccount(String account);

	Distributor findOneByNo(String no);

	Long getLastNo();
	
	PageResult<Distributor> loadPage(PageParam<DistributorPageParam> param);
	
	List<Map<String, Object>> sum(List<String> ids, DistributorOrderGroupParam param);
	
	
}
